"""
AI Integration URLs
AI功能集成URL配置
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from .views_clean import (
    QuestionGenerationView,
    GradingAssistantView,
    AnalyticsView,
    AIUsageStatsView,
    AIGeneratedQuestionsView,
    ai_status,
    ai_feedback
)

# 创建路由器
router = DefaultRouter()
router.register(r'questions', AIGeneratedQuestionsView, basename='ai-questions')

app_name = 'ai_integration'

urlpatterns = [
    # AI题目生成
    path('generate-questions/', QuestionGenerationView.as_view(), name='generate-questions'),

    # AI评分助手
    path('grade/', GradingAssistantView.as_view(), name='grade'),

    # AI分析服务
    path('analyze/', AnalyticsView.as_view(), name='analyze'),

    # AI使用统计
    path('usage-stats/', AIUsageStatsView.as_view(), name='usage-stats'),

    # AI服务状态
    path('status/', ai_status, name='status'),

    # AI服务反馈
    path('feedback/', ai_feedback, name='feedback'),

    # 包含路由器生成的URL
    path('', include(router.urls)),
]